package top.lcpsky.flashcards.dto;


public class CardDto{
    private String front;

    private String back;

    private String id;


    private Byte type;

    private Byte known;


    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Byte getKnown() {
        return (byte) (known==null?0:this.known);
    }

    public void setKnown(Byte known) {
        this.known = known;
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id.replaceAll(",","");
    }


    public String getFront() {
        return front;
    }

    public void setFront(String front) {
        this.front = front == null ? null : front.trim();
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back == null ? null : back.trim();
    }
}